﻿@{
    ViewData["Title"] = "OutboundAdd";
    Layout = "~/Views/Shared/Template.cshtml";
}
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<h2>新增出库</h2>
    <!-- 请勿在项目正式环境中引用该 layui.css 地址 -->
    <link href="//unpkg.com/layui@2.9.18/dist/css/layui.css" rel="stylesheet">
    <br />
    <table class="layui-anim" width="100%" border="1">
        <tr>
            <td>新增出库单</td>
        </tr>
    </table>
    <br />
<br />
    <form class="layui-form layui-form-pane" action="">
    <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">出库单号：</label>
            <div class="layui-input-inline">
                <input type="text" name="outboundNo" id="outboundNo" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">出库单类型：</label>
                <div class="layui-input-inline">
                <select id="outboundType" name="outboundType" lay-filter="aihao">
                    <option value="0">全部</option>
                    <option value="销售退货出库">销售退货出库</option>
                    <option value="采购退货出库">采购退货出库</option>
                    <option value="生产产品出库">生产产品出库</option>
                    <option value="领用退还出库">领用退还出库</option>
                    <option value="借货出库">借货出库</option>
                </select>
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">关联订单号：</label>
                <div class="layui-input-inline">
                <input type="text" name="associateNumber" id="associateNumber" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
    <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 120px;">供应商编号：</label>
            <div class="layui-input-inline">
                <input type="text" name="vendorNo" id="vendorNo" placeholder="关键词搜索或者双击选择" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;"> 供应商名称：</label>
                <div class="layui-input-inline">
                <input type="text" name="vendorName" id="vendorName" autocomplete="off" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">供应商联系人：</label>
                <div class="layui-input-inline">
                <input type="text" name="vendorContact" id="vendorContact" autocomplete="off" class="layui-input">
                </div>
            </div>
        </div>
    <div class="layui-form-item">
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">供应商联系方式：</label>
            <div class="layui-input-inline">
                <input type="text" name="vendorPhone" id="vendorPhone" autocomplete="off" style="width: 300px;" class="layui-input">
                </div>
            </div>
            <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">制单人：</label>
                <div class="layui-input-inline">
                <input type="text" name="singleMaker" id="singleMaker" autocomplete="off" class="layui-input">
                </div>
            </div>
        <div class="layui-inline">
            <label class="layui-form-label" style="width: 150px;">制单时间</label>
            <div class="layui-input-inline">
                <input type="date" name="singledata" id="singledata" autocomplete="off" class="layui-input">
            </div>
        </div>
            
        </div>
        <div class="layui-form-item layui-form-text">
            <label class="layui-form-label">备注：</label>
            <div class="layui-input-block">
            <textarea placeholder="请输入内容" id="outboundRemarks" class="layui-textarea"></textarea>
            </div>
        </div>
    <div style="float:left;margin-top:40px;margin-bottom:40px">
        <h4>产品信息</h4>
    </div>
    <div style="float:right;margin-top:40px;margin-bottom:40px">
        <button type="button" class="layui-btn layui-bg-gray" lay-on="test-page-custom">
            <i class="layui-icon layui-icon-add-1"></i>新增产品
        </button>
    </div>
    <table class="layui-hide" id="allocationProduct"></table>
    <div class="layui-form-item" style="text-align:center;margin-top:50px">
        <button type="button" class="layui-btn" lay-submit lay-filter="demo2" onclick="OutboundAdd()">提交</button>
        <button type="reset" class="layui-btn layui-btn-primary" onclick="location.href='/Warehouse/OutboundShow'">取消</button>
    </div>
    </form>
<script src="~/js/warehouse/outbound/outboundadd.js"></script>